package com.ruoyi.pets.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 宠物健康对象 pet_health
 * 
 * @author isc
 * @date 2024-03-11
 */
public class PetHealth extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 宠物名称 */
    @Excel(name = "宠物名称")
    private String name;

    /** 接种时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "接种时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date injectTime;

    /** 宠物病历 */
    @Excel(name = "宠物病历")
    private String petSample;

    /** 主人名称 */
    @Excel(name = "主人名称")
    private String masterName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setInjectTime(Date injectTime) 
    {
        this.injectTime = injectTime;
    }

    public Date getInjectTime() 
    {
        return injectTime;
    }
    public void setPetSample(String petSample) 
    {
        this.petSample = petSample;
    }

    public String getPetSample() 
    {
        return petSample;
    }
    public void setMasterName(String masterName) 
    {
        this.masterName = masterName;
    }

    public String getMasterName() 
    {
        return masterName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("injectTime", getInjectTime())
            .append("petSample", getPetSample())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("masterName", getMasterName())
            .toString();
    }
}
